<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>${param.category } 게시판</h3>
	<table class="list_table" border="1" width="600" cellpadding="2">
		<tr>
			<th width="10%">번호</th>
			<th width="45%">제목</th>
			<th width="15%">작성자</th>
			<th width="15%">작성일</th>
			<th width="15%">조회수</th>
		</tr>
		<c:forEach var="bvo" items="${requestScope.lvo.list}">
			<tr>
				<td>${bvo.no }</td>
				<td><a href="showContentHits.inven?no=${bvo.no }">${bvo.title }</a></td>
				<td>${bvo.id }</td>
				<td>${bvo.timePosted }</td>
				<td>${bvo.hits }</td>
			</tr>
		</c:forEach>
	</table>

<%------------------------------------------- 페이징 -------------------------------------------%>
	<%-- 이전 페이지 그룹이 있을 경우  --%>
	<c:if test="${requestScope.lvo.pagingBean.previousPageGroup}">
		<a href="board.inven?no=${requestScope.lvo.pagingBean.previousPageGroup-1}&category=${param.category}&contentType=1">◀</a>
	</c:if>
	<%-- 페이징 부분 --%>
	<c:forEach var="i" begin="${requestScope.lvo.pagingBean.startPageOfPageGroup}"
		end="${requestScope.lvo.pagingBean.endPageOfPageGroup}">
		<c:choose>
			<c:when test="${requestScope.lvo.pagingBean.nowPage!=i}">
				<a href="board.inven?no=${i}&category=${param.category}&contentType=1">${i}</a>
			</c:when>
			<c:otherwise>
				${i} 
			</c:otherwise>
		</c:choose>
	</c:forEach>
	<%-- 다음 페이지 그룹이 있을 경우 --%>
	<c:if test="${requestScope.lvo.pagingBean.nextPageGroup}">
		<a href="board.inven?no=${requestScope.lvo.pagingBean.endPageOfPageGroup+1}&category=${param.category}&contentType=1">▶</a>
	</c:if>